package com.itheima;

import com.itheima.service.AccountService;

import java.util.Scanner;

/*
 * 黑马影院入口类
 * */
public class HeimaMovieApplication {
    public static void main(String[] args) {

        AccountService accountService = new AccountService();

        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("===============欢迎使用黑马影院=============");
            System.out.println("请选择:1.登陆\t\t2.注册\t\t3.退出");

            String choice = sc.next();

            switch (choice) {
                case "1" -> accountService.login();
                case "2" -> accountService.register();
                case "3" -> {
                    System.out.println("goodbye!");
                    return;
                }
                default -> System.out.println("选择有误,请重新输入!");
            }
        }

    }


}
